package com.climber.android.commonres.realm

import io.realm.Realm

/**
 * Created by Mikes at 2019-06-27 14:48
 * Realm操作对象扩展
 */
inline fun realmRun(callback: ((realmInstance: Realm) -> Unit)) {
    Realm.getDefaultInstance().use {
        callback(it)
    }
}